projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3f81cd
)
(ns_draw_glyph_string): Stop drawing the background of the next glyph
author
Chong Yidong
<cyd@stupidchicken.com>
Sat, 15 Nov 2008 05:20:49 +0000
(
05:20
+0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Sat, 15 Nov 2008 05:20:49 +0000
(
05:20
+0000)
string once past the overhang width.
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index 7b9cebac8755a266b7f0988d1d30ba1e45381a7f..ccfee9b57b08cf4e0a2d99811ceace02a01fd1c5 100644
(file)
--- a/
src/nsterm.m
+++ b/
src/nsterm.m
@@
-2829,7
+2829,8
@@
ns_draw_glyph_string (struct glyph_string *s)
int width;
struct glyph_string *next;
- for (width = 0, next = s->next; next;
+ for (width = 0, next = s->next;
+ next && width < s->right_overhang;
width += next->width, next = next->next)
if (next->first_glyph->type != IMAGE_GLYPH)
{